Codeshare List of user-contributed code snippets for dotCMS Java CMS.

Author: "Stephen Bell"

Multi-select custom field

Author: Brad Rice |

This builds on the codeshare Stephen Bell provided for using a custom field with a select. This uses a multi-select and reads back in multiple values and...

Pull a dropdown list (select) of other content into a custom field

Author: Stephen Bell |

Use this code in a custom field, to pull a list of other content into a select field. This code uses the jQuery Javascript library in a way that shouldn't...

Loop through numbered fields

Author: Stephen Bell |

Write your velocity code once for multiple fields or groups of fields then put them into your page instead of repeating yourself for each one.

Site Search with Google Site Search XML

Author: Stephen Bell |

This code will allow you to connect to Google Site Search's XML and display it's search engine results in your page. This is done on the server side, and...

Display Facebook Page RSS Feed

Author: Stephen Bell |

Use this code to pull an RSS feed from Facebook for your institution's Page, and display the most recent item in your HTML code.

Display Link/Description of Latest YouTube Video

Author: Stephen Bell |

This code displays the latest YouTube video posted to any account. Because the YouTube RSS feed makes extensive use of tables and inline styles, we strip...

Pull Latest Vimeo Video

Author: Stephen Bell |

This code will pull the description, image and title of your latest Vimeo video and put it into your page. Vimeo feeds are more well-formatted than some...